package iservice

import (
	. "starsine.cn/appTpl/cmn/defs"
)

type IService interface {
	Start(c interface{})
	End()
	ResetHeartbeat()
	MsgHandler(msg []byte)
	GetServiceType() string

	GetName() string
	GetInstanceID() string
	GetUserSpace() string
	GetRpcAddr() string
	GetVersion() int32
	GetHealthy() Health
	GetSvcData() SvcData
	Send(topic string, content interface{}) error
}
